<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="ice" uri="http://www.icesoft.com/icefaces/component"%>
<f:view>
    <ice:outputHtml>
        <ice:outputHead>
            <title>JSP Page</title>
            <ice:outputStyle href="./xmlhttp/css/xp/xp.css"/>
            <link rel="stylesheet" type="text/css" href="menuStyl.css"/>
        </ice:outputHead>
        <ice:outputBody>
            <div class="container1">
            <div class="header1" align="center"><ice:outputText value="#{param.tresc}"/></div>

            <br/>
            <ice:form>
            <ice:panelGrid columns="2">
                <ice:outputText value="Login"/>
                <ice:inputText value="#{bettor.login}"/>

                <ice:outputText value="Hasło"/>
                <ice:inputSecret value="#{bettor.password}"/>

                <ice:outputText value="Imię"/>
                <ice:inputText value="#{bettor.name}"/>

                <ice:outputText value="Nazwisko"/>
                <ice:inputText value="#{bettor.surname}"/>

                <ice:outputText value="Email"/>
                <ice:inputText value="#{bettor.email}"/>

                <ice:outputText value="Adres"/>
                <ice:inputText value="#{bettor.address}"/>

                <ice:outputText value="Miasto"/>
                <ice:inputText value="#{bettor.city}"/>

                <ice:outputText value="Kod pocztowy"/>
                <ice:inputText value="#{bettor.postcode}"/>

                <ice:outputText value="Kraj"/>
                <ice:selectOneMenu id="SlctCompTyp"
                        value="#{bettor.country}"
                        partialSubmit="true">
                    <f:selectItems id="SlctcompTypeItms"
                                   value="#{country.countryItems}"/>
                </ice:selectOneMenu>

                <ice:outputText value="Telefon"/>
                <ice:inputText value="#{bettor.phone}"/>

                <ice:outputText value="Data urodzenia"/>
                <ice:panelGroup styleClass="exampleBox firstChildTitle">
                    <ice:selectInputDate id="popupDatePttrn1" renderMonthAsDropdown="true" renderYearAsDropdown="true"
                             value="#{bettor.birthdate}" rendered="#{date.pattern eq 'date'}"
                             valueChangeListener="#{date.effect2ChangeListener}"
                             renderAsPopup="true">
                    <f:convertDateTime pattern="MM/dd/yyyy"
                               timeZone="#{date.timeZone}"/>
                    </ice:selectInputDate>
                </ice:panelGroup>

                <ice:message for="data"/>
            </ice:panelGrid>
            <br/>
            <div align="center"> <ice:commandButton value="Dodaj" action="#{bettor.dodaj}"/>
            <ice:commandButton value="Powrót" action="back"/></div>
            </ice:form>
            </div>
        </ice:outputBody>
    </ice:outputHtml>
</f:view>